package Opgave4;

public class OpgaveA {
	public static void main(String[] args){
		MyThread threadA = new MyThread();
		threadA.start();
		threadA.interrupt();


	}
}

class MyThread extends Thread{
	public void run(){
		try{
			Thread.sleep(2000);
			System.out.println("Just woke up again!");
		}catch(InterruptedException ie){
			System.out.println("I was interrupted");
		}
	}
}